package com.news.service.impl;

import com.news.dao.UmsUserDao;
import com.news.dao.impl.UmsUserDaoImpl;
import com.news.entity.Admin;
import com.news.entity.User;
import com.news.service.UmsUserSerivce;

/**
 * @Author:weiming
 * @Date:2021/3/31
 */
public class UmsUserServiceImpl implements UmsUserSerivce {

    private UmsUserDaoImpl userDao = new UmsUserDaoImpl();

    @Override
    public int login(Admin admin) {
        return userDao.login(admin);
    }

    @Override
    public int regist(User user) {
        return userDao.regist(user);
    }

    @Override
    public int userLogin(User user) {
        return userDao.userLogin(user);
    }
}
